﻿using Chromely.Core;
using Chromely.Core.Configuration;

// 配置选项
var config = DefaultConfiguration.CreateForRuntimePlatform();
//程序名称
config.AppName = "chromely note";
// 入口页面
config.StartUrl = "local://app/index.html";
// 禁用Debug
config.DebuggingMode = false;
// Cef下载配置
// config.CefDownloadOptions = new CefDownloadOptions(autoDownload: true,silentDownload:true,CefDownloadNotificationType.None);
// 窗口配置
config.WindowOptions = new WindowOptions {
    Title = "chromely note",
    Size = new WindowSize(1366, 768),
    MinimumSize = new System.Drawing.Size(1366, 768),
    //RelativePathToIconFile = "chromely.ico",
    RelativePathToIconFile = "chromely-note.ico",
    //WindowState = Chromely.Core.Host.WindowState.Normal,
};

// 无边框窗口
//config.WindowOptions.WindowFrameless = true;


// 单线程
// ThreadApt.STA();


AppBuilder
    .Create(args)
    // 使用配置项
    .UseConfig<DefaultConfiguration>(config)
    // 使用自定义窗口
    .UseWindow<NoteWindow>()
    // 使用自定义app
    .UseApp<NoteApp>()
    .Build()
    .Run();